#pragma once
#include "TCharSupport.h"
#include "EpilStatementCodeBase.h"
#include "EpilFunctionBodyExpressionCode.h"


class EpilLocalFunctionStatementCode : public EpilStatementCodeBase
{
	EPIL_CODE_DECL( LocalFunctionStatement );

public:
	EpilLocalFunctionStatementCode( const EpilLexLocation & location );
	virtual ~EpilLocalFunctionStatementCode();

	tstring								GetName() const										{ return m_name; }
	void								SetName( const tstring & name )						{ m_name = name; }
	EpilFunctionBodyExpressionCode *	GetBody() const										{ return m_body; }
	void								SetBody( EpilFunctionBodyExpressionCode * body )	{ m_body = body; }

	virtual tstring						ToEpilCode( int indent ) const;

private:
	tstring								m_name;
	EpilFunctionBodyExpressionCode *	m_body;
};